The Treaty of Maastricht, signed in 1843 by Belgium and the Netherlands, established the border between the two countries. It resulted in a very complicated frontier in parts that passes through houses and has tiny enclaves depending on where Catholic Belgians and Dutch Protestants were living at the time.